<!DOCTYPE html>
<html>
<head>
    <title>运费基础数据</title>
		<#include "/header2.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <!--查询-->
        <el-form :inline="true" class="demo-form-inline" size="small">
            <el-form-item label="起始区域">
                <el-input v-model="q.regionNameStart" ></el-input>
            </el-form-item>
            <el-form-item label="终点区域">
                <el-input v-model="q.regionNameEnd" ></el-input>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="search">查询</el-button>
                <el-button size="small" @click="openImport" type="primary">导入<i class="el-icon-upload el-icon--right"></i></el-button>
            </el-form-item>
        </el-form>

        <!--可提现订单表格-->
        <el-table size="small" ref="freightBaseTable"
                  :data="freightBaseList"
                  border style="width: 100%" >

            <el-table-column    type="index"  width="55"  >  </el-table-column>

            <el-table-column    prop="regionIdStart"  label="起始区域ID" >  </el-table-column>

            <el-table-column    prop="regionNameStart"  label="起始地区名称"   >  </el-table-column>

            <el-table-column    prop="regionIdEnd"  label="终点区域ID"  >  </el-table-column>

            <el-table-column    prop="regionNameEnd"  label="终点地区名称"  >  </el-table-column>

            <el-table-column    prop="createName"  label="创建人"  >  </el-table-column>

            <el-table-column    prop="createTime"  label="创建时间"  >  </el-table-column>

            <el-table-column    prop="updateName"  label="更新人"  >  </el-table-column>

            <el-table-column    prop="updateTime"  label="更新时间"  >  </el-table-column>

        </el-table>

        <!--分页插件-->
        <div style="text-align: center;margin: 15px">
            <el-pagination
                    @size-change="handleSizeChange"
                    @current-change="handleCurrentChange"
                    :current-page="page.currentPage"
                    :page-sizes="page.pageSizes"
                    :page-size="page.pageSize"
                    layout="total, sizes, prev, pager, next"
                    :total="page.total">
            </el-pagination>
        </div>
    </div>

    <el-dialog
            title="Excel导入"
            :visible.sync="dialogVisible"
            width="400px"
            >
            <el-upload
                    class="upload-demo"
                    ref="upload"
                    drag
                    :on-success="handleAvatarSuccess"
                    :on-error="handleAvatarError"
                    :auto-upload="false"
                    action="/freightBase/freightbase/importExcel"
                >
                <i class="el-icon-upload"></i>
                <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
            </el-upload>
            <span slot="footer" class="dialog-footer">
                <el-button @click="dialogVisible = false">取 消</el-button>
                <el-button type="primary" @click="submitUpload">上 传</el-button>
          </span>
    </el-dialog>
</div>

<script src="${request.contextPath}/statics/js/modules/freightBase/freightbase.js?_${.now?long}"></script>
</body>
</html>